package app.TianQi;

import java.util.List;
import java.util.Random;

import qiurank.PlanInterface;
import qiurank.UrlObject;

/**
 * Created by Administrator on 2016/1/14.
 */
public class Filter implements PlanInterface{
    @Override
    public UrlObject doPlanGetNoPaUrl(List<UrlObject> list) {
        //取出待爬取url的策略
        int len=list.size();
        Random random=new Random();
        int key=random.nextInt(len);
        return list.get(key);
    }

    @Override
    public boolean doPlanAddUrl(String url) {
        return true;
    }
}
